import logging
import yagmail

def log_set():
    logging.basicConfig(level=logging.DEBUG,format='%(thread)d-%(threadName)s-%(taskName)s',filename='log.txt')
def send_email(a):
    email=yagmail.SMTP(user='1125323288@qq.com',password='awvatgvhszvjfedf',host='smtp.qq.com')
    email.send(to='1125323288@qq.com',subject='aa',contents='bb',attachments=a)